from typing import List


class Solution:
    def eliminateMaximum(self, dist: List[int], speed: List[int]) -> int:
        times = [dist[i] / speed[i] for i in range(len(dist))]
        times.sort()

        for i, time in enumerate(times):
            if i >= time:
                return i

        return len(dist)


if __name__ == "__main__":
    print(Solution().eliminateMaximum(dist=[1, 3, 4], speed=[1, 1, 1]))  # 3
    print(Solution().eliminateMaximum(dist=[1, 1, 2, 3], speed=[1, 1, 1, 1]))  # 1
    print(Solution().eliminateMaximum(dist=[3, 2, 4], speed=[5, 3, 2]))  # 1
